<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title>监督日志列表</title>
<script type="text/javascript">
	$(document).ready(function() {
		$("#prepareDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '1900-10-01',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
		$("#dealDate").addClass("Wate").bind("focus", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '#F{$dp.$D(\'prepareDate\')}',
				dateFmt : 'yyyy-MM-dd HH:mm:ss'
			});
		});
	});
</script>
</head>
<body>
	<div id="heading" class="check_result">
		<h6>整改处罚信息</h6>
	</div>
	<div id="message">
		<s:actionmessage theme="custom" cssClass="success" />
	</div>
	<form action="${ctx}/quality/check_result!addQuery.action" method="get"
		class="yform" id="mainForm">

		<div id="filter">
			<ul>
				<li>发现时间:<input id="prepareDate" type="text"
					name="filter_GED_prepareDate"
					value="${param['filter_GED_prepareDate'] }">
				</li>
				<li>处理时间:<input id="dealDate" type="text"
					name="filter_LED_dealDate" value="${param['filter_LED_dealDate'] }">
				</li>
				<li>问题类型:<pt:code prompt="全部" category="3011"
						name="filter_EQS_type" default="${param['filter_EQS_type'] }"></pt:code>
				</li>
			</ul>
			<div class="type-button">
				<input type="button" class="search" value="查询" onclick="search();"
					src="">
			</div>
		</div>
		<div id="content">
			<table id="contentTable">
				<tr>
					<th><a id="createDate"
						href="javascript:sort('createDate','asc')">序号</a>
					</th>
					<th><a id="projectInfo.projName"
						href="javascript:sort('projectInfo.projName','asc')">工程名称</a>
					</th>
					<th><a style="text-align: center" id="content"
						href="javascript:sort('content','asc')">概要描述</a>
					</th>
					<th><a id="prepareDate"
						href="javascript:sort('prepareDate','asc')">发现时间</a>
					</th>
					<th><a id="dealDate" href="javascript:sort('dealDate','asc')">处理时间</a>
					</th>
					<th><a id="dealContent"
						href="javascript:sort('dealContent','asc')">处理措施</a>
					</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${page.result }" var="check" varStatus="status">
					<tr class="${(status.count % 2 == 0) ? 'even' : 'odd'}">
						<td>${page.first+status.index}</td>
						<td><pt:labels type="proj" argument1="${check.projectId }"
								single="true"></pt:labels></td>
						<td><pt:text limit="15">${check.content}</pt:text>
						</td>
						<td>${check.prepareDate}</td>
						<td>${check.dealDate}</td>
						<td>${check.dealContent}</td>
						<td><a
							href="${ctx}/quality/check_result!input2.action?id=${check.id}">编辑</a>
							<a
							href="${ctx}/quality/check_result!delete.action?id=${check.id}"
							onclick="return confirmDelete();">删除</a> <a
							href="${ctx}/quality/check_result!view.action?id=${check.id}">查看</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<s:include value="/common/page.jsp"></s:include>
	</form>
</body>
